* xfns.c (Fx_create_frame): Set font parameter directly instead of
authorChong Yidong <cyd@stupidchicken.com>
Sat, 24 Jun 2006 22:27:12 +0000 (22:27 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Sat, 24 Jun 2006 22:27:12 +0000 (22:27 +0000)
using x_default_parameter, since x_get_args clears the parm alist.

src/ChangeLog
src/xfns.c

index 4ad2bd086967802a0df4db00701ff577c05d23f2..906b58ee356c930e1044833b4ec141bbae1896e1 100644 (file)
@@ -1,3 +1,8 @@
+2006-06-24  Chong Yidong  <cyd@stupidchicken.com>
+
+       * xfns.c (Fx_create_frame): Set font parameter directly instead of
+       using x_default_parameter, since x_get_args clears the parm alist.
+
 2006-06-24  Eli Zaretskii  <eliz@gnu.org>
 
        * dired.c (directory_files_internal) [WINDOWSNT]: Find files
index e6772dc65d9a54179803eaa66097a8d880b3d100..55575d9ec61234a645e19f10d0525fb81bf75244 100644 (file)
@@ -3189,8 +3189,7 @@ This function is an internal primitive--use `make-frame' instead.  */)
     if (! STRINGP (font))
       font = build_string ("fixed");
 
-    x_default_parameter (f, parms, Qfont, font,
-                        "font", "Font", RES_TYPE_STRING);
+    x_set_frame_parameters (f, Fcons (Fcons (Qfont, font), Qnil));
   }
 
 #ifdef USE_LUCID